/**
 * 按钮权限控制
 * eg: v-selfBtn="1234567"
 * '1234567' 为行数据的创建人Id
 */

import selfBtn from './selfBtn.js'
const install = function(Vue) {
  Vue.directive('selfBtn', selfBtn)
}

if (window.Vue) {
  window['selfBtn'] = selfBtn
    Vue.use(install); // eslint-disable-line
}

selfBtn.install = install
export default selfBtn
